/*
 * Created on 2005-6-17
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package com.linkage.lcims.base.dao.business.impl;

import java.util.List;

import com.linkage.lcims.base.dao.HibernateBaseDAOImpl;
import com.linkage.lcims.base.dao.business.interfaces.PaytypeDAO;
import com.linkage.lcims.base.po.business.BdPaytype;

/**
 * @author Administrator
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class PaytypeDAOImpl extends HibernateBaseDAOImpl implements PaytypeDAO {

	/**
	 * 
	 */
	public PaytypeDAOImpl() {
		super();
		// TODO Auto-generated constructor stub
	}

	/* (non-Javadoc)
	 * @see com.linkage.lcims.base.dao.system.interfaces.PaytypeDAO#getAll()
	 */
	@SuppressWarnings("unchecked")
	public List<BdPaytype> getAll() throws Exception {
		return this.getAll(BdPaytype.class);
	}

	/* (non-Javadoc)
	 * @see com.linkage.lcims.base.dao.system.interfaces.PaytypeDAO#savePaytype(com.linkage.lcims.base.po.system.BdPaytype)
	 */
	public void savePaytype(BdPaytype paytype) throws Exception {
		this.save(paytype);
	}

	/* (non-Javadoc)
	 * @see com.linkage.lcims.base.dao.system.interfaces.PaytypeDAO#deletePayType(com.linkage.lcims.base.po.system.BdPaytype)
	 */
	public void deletePaytype(BdPaytype paytype) throws Exception {
		this.delete(BdPaytype.class, paytype.getPaytype());
	}

	/* (non-Javadoc)
	 * @see com.linkage.lcims.base.dao.system.interfaces.PaytypeDAO#updatePaytype(com.linkage.lcims.base.po.system.BdPaytype)
	 */
	public void updatePaytype(BdPaytype paytype) throws Exception {
		// TODO Auto-generated method stub
		this.merge(paytype);
	}

}
